#pragma once
#include "Sensor.h"
#include <string>

class LaserSensor : public Sensor
{
private:
    int pin;
    bool obstacles;
public:
    LaserSensor(int deviceID, int pin, std::string dbName, std::string dataTableName, std::string configTableName);

    bool hasObstacles();
    
    int getPin() const { return pin; };
    void setPin(int pin) { this->pin = pin; };

    virtual SensorConfig readConfigFromBuffer();
    virtual void writeConfigToBuffer(SensorConfig config);

    virtual void recordSensorData();
    virtual void readSensorData();
};

